package com.xiaoyu.awakening.ai.search.service;

import com.xiaoyu.awakening.ai.control.entity.AwkRankDefinition;
import com.xiaoyu.awakening.ai.search.context.AwkSearchContext;
import com.xiaoyu.awakening.ai.control.service.IAwkSearchRegisterService;
import com.xiaoyu.awakening.ai.search.model.AwkSearchContent;

import java.util.List;

/**
 * @author wangxiaoyu
 * @date 2024/8/1 15:25
 * @since v1.0
 */
public interface IAwkReRankService extends IAwkSearchRegisterService {
    void rerank(AwkSearchContext<AwkSearchContent> context);

    /**
     * 获取所有的reranker定义
     *
     * @return reranker定义列表
     */
    List<AwkRankDefinition> getRerankersDefinition();

    void rank(AwkSearchContext<com.xiaoyu.awakening.ai.search.model.AwkSearchContent> context);
}
